package com.hsr.pojo;

import java.io.Serializable;
import java.util.Date;

public class Person implements Serializable {
    private Integer perId;

    private String perName;

    private Integer perGender;

    private Integer perWork;

    private String perPhone;

    private String perAddress;

    private Date createTime;

    private Date updateTime;

    private static final long serialVersionUID = 1L;

    public Integer getPerId() {
        return perId;
    }

    public void setPerId(Integer perId) {
        this.perId = perId;
    }

    public String getPerName() {
        return perName;
    }

    public void setPerName(String perName) {
        this.perName = perName == null ? null : perName.trim();
    }

    public Integer getPerGender() {
        return perGender;
    }

    public void setPerGender(Integer perGender) {
        this.perGender = perGender;
    }

    public Integer getPerWork() {
        return perWork;
    }

    public void setPerWork(Integer perWork) {
        this.perWork = perWork;
    }

    public String getPerPhone() {
        return perPhone;
    }

    public void setPerPhone(String perPhone) {
        this.perPhone = perPhone == null ? null : perPhone.trim();
    }

    public String getPerAddress() {
        return perAddress;
    }

    public void setPerAddress(String perAddress) {
        this.perAddress = perAddress == null ? null : perAddress.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", perId=").append(perId);
        sb.append(", perName=").append(perName);
        sb.append(", perGender=").append(perGender);
        sb.append(", perWork=").append(perWork);
        sb.append(", perPhone=").append(perPhone);
        sb.append(", perAddress=").append(perAddress);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}